package com.dubbo.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.api.DemoService;
import com.dubbo.api.User;

/**
 * Created by LiuChang on 2017/4/6.
 */
@Service
public class DemoServiceImpl implements DemoService {
    public String sayHello(String name) {
        return "Hello " + name;
    }

    public User findUserById(long id) {

        User user = new User();
        user.setId(id);
        user.setName("Ricky");
        user.setAge(26);

        return user;
    }
}
